/*
 * @Author: jiangyg email@jiangyg.com
 * @Date: 2022-10-28 20:14:30
 * @LastEditors: jiangyg email@jiangyg.com
 * @LastEditTime: 2022-11-18 15:21:47
 * @FilePath: /frontend/mall-frontend/src/main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from "vue";
import router from "@/router";
import store from "@/store";

import App from "./App.vue";
import "@/assets/scss/main.scss";
import "element-plus/theme-chalk/index.css";
import IconSvg from "@/components/icon-svg/index.vue";
import "@/icons/iconfont.js";
import DataTable from "@/components/data-table/data-table";
import DtSearchItem from "@/components/data-table/search-item";
import { ElLoading } from "element-plus";

// 客户端类型
window.cid = "";

const app = createApp(App);

app.use(store);
app.use(router);
app.component('IconSvg', IconSvg);

// 自定义组件注册
app.component('DataTable', DataTable);
app.component('DtSearchItem', DtSearchItem);
// 注册 v-loading 指令，否则jsx中不识别
app.directive('loading', ElLoading.directive);

app.mount("#app");
